# 使用 Ubuntu 22.04 作为基础镜像
FROM ubuntu:22.04

# 设置环境变量
ENV DEBIAN_FRONTEND=noninteractive \
    GNUTLS_CPUID_OVERRIDE=0x1

# 更新软件包列表并安装依赖项
RUN apt-get update && apt-get install -y \
    software-properties-common \
    iputils-ping \
    net-tools \
    iproute2 \
    vim \
    binutils \
    bzip2 \
    diffutils \
    findutils \
    flex \
    git \
    gawk \
    gcc \
    g++ \
    libz-dev \
    libncurses5-dev \
    libncursesw5-dev \
    libelf-dev \
    libssl-dev \
    make \
    cmake \
    autogen \
    unzip \
    python2.7-dev \
    python3 \
    python3-dev \
    python3-distutils \
    python3-setuptools \
    perl \
    locales \
    wget \
    curl \
    rsync \
    file \
    sudo \
    bash-completion \
    libpcre3 \
    libpcre3-dev \
    patchelf \
    subversion \
    m4 \
    build-essential \
    ccache \
    ecj \
    fastjar \
    gettext \
    java-propose-classpath \
    swig \
    time \
    xsltproc \
    zlib1g-dev \
    && locale-gen en_US.UTF-8;update-locale LANG=en_US.UTF-8;dpkg-reconfigure locales

# 保持容器运行
CMD ["tail", "-f", "/dev/null"]

